<?php defined('SYSPATH') or die('No direct script access.');
$r          = Request::current();
$action     = $r->uri2(array('action'=>'login'));
$thesystems = Helper_thesystems::factory();
$captcha    = $thesystems->system_auth('system_captcha');
?>
<?php echo View::factory('module/apps_message')->render(); ?>
<br><br><br>
<div class="row pull-none" style="margin: 0px auto;">
<?php echo Form::open($action,array('class'=>'form-signin span5 offset4 well'))?>
<?php echo Form::hidden('command','login')?>
  <h2 class="form-signin-heading"><li class="icon32 icon32-black icon32-users"></li>Users Login</h2>
  <?php echo Form::input('cszusername', '', array('class'=>'input-block-level','placeholder'=>'username'))?>
	<?php echo Form::password('cszpassword', '', array('class'=>'input-block-level','placeholder'=>'password'))?>
<?php if($captcha == 1) { ?>		
	<div class="row-fluid" style="margin: 5px; text-align: center;">
		<?php echo HTML::image('admin/captcha',array('class'=>'captcha')); ?>
	  <small>Re-Write the code : </small><?php echo Form::input('captchacode', '', array('class'=>'input-block-level span3'))?>
	</div>
<?php } ?>		
	<?php echo Form::submit('submit','submit',array('class'=>'btn btn-large btn-primary btn-block')) ?>
	
<?php echo Form::close()?>
</div>









